package com.tsinghua.discharge.dao;

import com.tsinghua.discharge.model.GcamBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GcamBaseMapper {
    int deleteByPrimaryKey(Integer gcamId);

    int insert(GcamBase record);

    int insertSelective(GcamBase record);

    GcamBase selectByPrimaryKey(Integer gcamId);

    int updateByPrimaryKeySelective(GcamBase record);

    int updateByPrimaryKey(GcamBase record);
    int selectRepeat(GcamBase record);
    int selectId(GcamBase record);
    int deleteBySector(@Param( "sector") String sector, @Param("userId") Integer userId);
    List<GcamBase> selectBySector(@Param( "sector") String sector, @Param("userId") Integer userId);
}